package com.youlin.dto.res;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.youlin.mybean.ResMapping;
import com.youlin.mybean.SetSubProp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDate;

@NoArgsConstructor
@Data
@Accessors(chain=true)
@ResMapping(mappingClass = "com.youlin.entities.BygAppointment")
public class TakerLoginInnerResDto {

    @ResMapping(mappingProp = "id")
    @ApiModelProperty(value = "告别会ID")
    private Integer amId;

    @JsonIgnore
    @ApiModelProperty(value="逝者ID", hidden = true)
    private Integer dmId;

    @SetSubProp(subProp = "name", subClass = "com.youlin.entities.BygDeadMan")
    @ApiModelProperty(value="逝者姓名")
    private String dmName;

    @JsonIgnore
    @SetSubProp(subProp = "relationId", subClass = "com.youlin.entities.BygUndertaker")
    @ApiModelProperty(value="逝者与承办人关系ID", hidden = true)
    private Integer relationId;

    @SetSubProp(subProp = "respectCall", subClass = "com.youlin.entities.BygRelation")
    @ApiModelProperty(value = "承办人对逝者的尊称")
    private String respectCall;

    @ApiModelProperty(value="告别会状态：0-新建、1-已预约、2-待审核、3-审核中、4-已审核")
    private Integer status;

    @ApiModelProperty(value="告别会日期", dataType = "java.lang.String", example = "2020-02-02")
    private LocalDate useDate;

    @ApiModelProperty(value = "告别会UUID")
    private String uuId;


}
